package ooday03;

public class SwimTest {
    public static void main(String[] args) {
        Dog dog = new Dog("萨摩耶", 3, "白");
        dog.eat();        //Dog类重写之后
        dog.drink();      //复用Animal
        dog.lookHome();   //Dog类所特有的
        dog.swim();       //dog类重写之后

        Chick chick = new Chick("红鸡",1,"红");
        chick.eat();    //Chick类重写之后
        chick.drink();  //复用Animal类的
        chick.layEggs();//Chick类所特有的

        Fish fish = new Fish("鲤鱼",3,"橙");
        fish.eat();     //Fish类重写之后
        fish.drink();   //复用Animal类的
        fish.swim();    //Fish类重写之后
    }
}
